package com.gyh.system.log.entity;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.gyh.system.common.persistence.BaseEntity;

public class Operation extends BaseEntity<Operation>{
	private static final long serialVersionUID = 1L;
	
	private String userName; 		//用户名
	private String ip;				//用户IP地址
	private String opType;			//操作类型
	private String allPath;			//方法全路径
	private String method;			//用户执行的方法
	private String sql;				//操作中之执行的sql语句
	private String sqlParam;		//执行sql是所携带的参数
	private String browser;			//使用的浏览器
	private String system;			//使用设备的操作系统
	private String msg;				//错误信息
	private String state;			//执行操作的状态，0：正常 ，1：失败
	private String descr;			//操作描述
	private Date createTime;		//操作时间

	

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	
	public String getMethod() {
		return method;
	}

	public String getBrowser() {
		return browser;
	}

	public String getSystem() {
		return system;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public void setBrowser(String browser) {
		this.browser = browser;
	}
  
	public void setSystem(String system) {
		this.system = system;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = StringUtils.left(sql, 255);
	}

	public String getOpType() {
		return opType;
	}

	public void setOpType(String opType) {
		this.opType = opType;
	}

	public String getDescr() {
		return descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getAllPath() {
		return allPath;
	}

	public void setAllPath(String allPath) {
		this.allPath = allPath;
	}

	public String getSqlParam() {
		return sqlParam;
	}

	public void setSqlParam(String sqlParam) {
		this.sqlParam = StringUtils.left(sqlParam, 255);
	}

	
	
}
